{include file="public/header" /}
<style>
    table.imagetable {
        font-family: verdana,arial,sans-serif;
        font-size:20px;
        color:#333333;
        border-width: 1px;
        border-color: #999999;
        border-collapse: collapse;
    }
    table.imagetable th {
        background:#b5cfd2;
        border-width: 1px;
        padding: 8px;
        border-style: solid;
        border-color: #999999;
        width: 180px;
    }
    table.imagetable td {
        background:#dcddc0;
        border-width: 1px;
        padding: 8px;
        border-style: solid;
        border-color: #999999;
    }
    .layui-form-item{
        margin-bottom: 5px
    }
    .layui-form-label{
        width: 172px;
    }
    .layui-input-block{
        margin-left: 180px
    }

</style>
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>产品详情</h5>
                </div>
                <div class="ibox-content layui-form">
                    <div class="layui-row layui-col-space10 layui-form-item ">

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md6">
                            <label class="layui-form-label">产品名称_英文：</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$goods.goods_name_en}" class="layui-input" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md6">
                            <label class="layui-form-label">产品名称_西班牙：</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$goods.goods_name_es}" class="layui-input" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md6">
                            <label class="layui-form-label">产品名称_葡萄牙：</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$goods.goods_name_tp}" class="layui-input" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">缩略图：</label>
                            <div class="layui-input-block">
                                <div class="layui-upload-list img-circle">
                                    <img class="layui-append-img" src="{$goods.goods_thumb}" onerror="this.src='/static/admin/images/no_img.jpg'">
                                </div>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md6">
                            <label class="layui-form-label">原价：</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$goods.goods_price}" class="layui-input" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md6">
                            <label class="layui-form-label">售价：</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$goods.goods_cu_price}" class="layui-input" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md6">
                            <label class="layui-form-label">供应商：</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$goods.supplier_name}" class="layui-input" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md6">
                            <label class="layui-form-label">属性：</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$goods.attr_name_en}" class="layui-input" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md6">
                            <label class="layui-form-label">包装：</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$goods.goods_packaging}" class="layui-input" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md6">
                            <label class="layui-form-label">一级分类：</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$goods.f_cateName}" class="layui-input" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md6">
                            <label class="layui-form-label">二级分类：</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$goods.s_cateName}" class="layui-input" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md6">
                            <label class="layui-form-label">三级分类：</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$goods.t_cateName}" class="layui-input" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md10">
                            <label class="layui-form-label">产品图集：</label>
                            <div class="layui-input-block">
                                {if count($goods.goods_images) > 0}
                                <div class="layui-upload-list img-circle">
                                    {volist name='goods.goods_images' id='vo'}
                                    <img class="layui-append-img" src="{$vo}">
                                    {/volist}
                                </div>
                                {else /}
                                暂无图片
                                {/if}
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md6">
                            <label class="layui-form-label">产品状态：</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$goods.goods_status == 1 ? '上架中' : '已下架'}" class="layui-input" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md6">
                            <label class="layui-form-label">推荐状态：</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$goods.goods_recommend == 1 ? '推荐' : '未推荐'}" class="layui-input" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md6">
                            <label class="layui-form-label">促销状态：</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$goods.goods_cu == 1 ? '促销' : '未促销'}" class="layui-input" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md6">
                            <label class="layui-form-label">规格名_英文：</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$goods.goods_spec_name_en}" class="layui-input" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md6">
                            <label class="layui-form-label">规格名_西班牙：</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$goods.goods_spec_name_es}" class="layui-input" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md6">
                            <label class="layui-form-label">规格名_葡萄牙：</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$goods.goods_spec_name_tp}" class="layui-input" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">规格值：</label>
                            <div class="layui-input-block">
                                <table class="imagetable">
                                    <tr>
                                        <th>规格值</th>
                                        <th>原价/美元</th>
                                        <th>售价/美元</th>
                                    </tr>
                                    {volist name='spec' id='vo2'}
                                    <tr>
                                        <td>{$vo2.spec_value}</td>
                                        <td>{$vo2.spec_price}</td>
                                        <td>{$vo2.spec_cu_price}</td>
                                    </tr>
                                    {/volist}
                                </table>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">产品简介_英文：</label>
                            <div class="layui-input-block">
                                <textarea class="layui-textarea" style="width: 400px" disabled>{$goods.goods_intro_en}</textarea>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">产品简介_西班牙：</label>
                            <div class="layui-input-block">
                                <textarea class="layui-textarea" style="width: 400px" disabled>{$goods.goods_intro_es}</textarea>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">产品简介_葡萄牙：</label>
                            <div class="layui-input-block">
                                <textarea class="layui-textarea" style="width: 400px" disabled>{$goods.goods_intro_tp}</textarea>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md10">
                            <label class="layui-form-label">产品详情_英文：</label>
                            <div class="layui-input-block" id="LAY_editor_en" lay-verify="editor">
                                <p>{$goods.goods_detail_en}</p>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md10">
                            <label class="layui-form-label">产品详情_西班牙：</label>
                            <div class="layui-input-block" id="LAY_editor_es" lay-verify="editor">
                                <p>{$goods.goods_detail_es}</p>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md10">
                            <label class="layui-form-label">产品详情_葡萄牙：</label>
                            <div class="layui-input-block" id="LAY_editor_tp" lay-verify="editor">
                                <p>{$goods.goods_detail_tp}</p>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

{include file="public/footer" /}
<script>
    var editor_en = wk.wang({elem:'#LAY_editor_en'});
    var editor_es = wk.wang({elem:'#LAY_editor_es'});
    var editor_tp = wk.wang({elem:'#LAY_editor_tp'});
</script>
</body>
</html>